<!--
 * @Author: your name
 * @Date: 2021-12-06 00:48:20
 * @LastEditTime: 2021-12-06 13:42:11
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \vue_shop\src\components\Home.vue
-->
<template>
  <div>
    <el-button class="btn" type="info" @click='loginOut'>退出登录</el-button>
  </div>
</template>

<script>
export default {
  methods:{
    loginOut(){
      localStorage.removeItem('token')
      this.$router.push('/login')
    }
  }
}
</script>

<style lang="less" scoped>
  
</style>
